#ifndef GATEWAYLOGINSUCCEEDCMD_H
#define GATEWAYLOGINSUCCEEDCMD_H

#include "Command/BaseCmd.h"
#include "DataType/UserStruct.h"
#include "Protocol/CloudProtocol.h"

class GatewayLoginSucceedCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::GatewayLoginSucceed};

    Q_INVOKABLE explicit GatewayLoginSucceedCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    QList<UserStruct> userList() const;
    void setUserList(const QList<UserStruct> &userList);

private:
    QList<UserStruct> m_userList;
};

#endif // GATEWAYLOGINSUCCEEDCMD_H
